<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<jsp:include page="header.jsp"></jsp:include>
<div id="main">
	<!-- Thread Start -->
	
		<div class="t t2">
		<s:form action="add_person" method="post" namespace="/system" >
			<table cellspacing="0" cellpadding="0" align="center"
				style="table-layout:fixed;border-top:0" >
				<tr class="tr3">
				<th  colspan="2" >
					<strong class="fl w" >注册用户</strong> &nbsp;
				</th>
				</tr>
				<tr class="tr3" align="right">
					<td>
						<s:textfield name="person.account" label="帐号" ></s:textfield>
						<s:hidden name="person.deleted" value="false"></s:hidden>
					</td>
				</tr>
				<tr class="tr3">
					<td>
					<s:password name="person.password" label="密码" ></s:password>
					</td>
				</tr>
				<tr class="tr3">
					<td>
						<s:password  name="password" label="确认密码"></s:password>
					</td>
				</tr>
				<tr class="tr3">
					<td>
						<s:textfield name="person.name" label="姓名" value="admin"></s:textfield>
					</td>
				</tr>
				<tr class="tr3">
					<td>
						<s:select name="dept.id"  listKey="id" listValue="deptName" list="deptList" label="部门">
						</s:select>
					</td>
				</tr>
			<tr class="tr3">
					<td>
						<s:select name="position.id" listKey="id" listValue="position" list="positionList" label="职位">
						</s:select>
					</td>
				</tr>
				<s:if test="#session.personInfo.group='admin'">
				<tr class="tr3">
					<td>
						<s:select name="group.id" list="groupList" listKey="id" listValue="group" label="职位">
						</s:select>
					</td>
				</tr>
				</s:if>
				<tr class="tr3">
					<td>
						<s:radio name="person.sex" list="#{'male':'男','female':'女'}" label="性别">
						</s:radio>
					</td>
				</tr>
				<tr class="tr3">
					<td>
						<s:textfield name="person.email" label="电子邮件"></s:textfield>
					</td>
				</tr>
				<tr class="tr3">
					<td>
						<s:textfield name="person.birthday" label="生日"></s:textfield>
					</td>
				</tr>
				<tr class="tr3">
					<td>
					<s:submit cssClass="btn" value="注册" theme="simple"></s:submit>
					
					</td>
					<td><s:reset cssClass="btn" value="取消"  theme="simple"></s:reset></td>
					</tr>
			</table>
			</s:form>
		</div>
<jsp:include page="footer.jsp"></jsp:include>
